package com.leyou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;

/**
 * @Author lixin
 * @Date 2018/11/06 18:21
 * @Version 1.0
 * @Description TODO
 **/

@ImportResource("classpath:/dubbo/*.xml")
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class RabbitApp extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(RabbitApp.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
